/*
 * @Descripttion:
 * @version: 用户管理
 * @Author: ada.wu
 * @Date: 2023-10-30 16:11:30
 * @LastEditors: ada.wu
 * @LastEditTime: 2023-11-04 23:01:06
 */



import { mapValue } from '@/utils/EsCommon';

export function userParams() {
  const modelRef = {




  }
  return modelRef
}

export const PULLING_STATE = {
  0: '未拉取',
  1: '成功',
  2: '失败',
}
export const PULLING_STATE_NODE_MAP = {
  0: '<span class="status-grey">未拉取</span>',
  1: '<span class="status-green">成功</span>',
  2: '<span class="status-red">失败</span>',
}

export const IS_PUBLISH_NODE_MAP = {
  '00': '<span class="status-yellow">待审核</span>',
  '01': '<span class="status-grey">未发布</span>',
  '02': '<span class="status-red">审核拒绝</span>',
  '11': '<span class="status-green">发布成功</span>',
  '21': '<span class="status-red">发布失败</span>',
}
export const IN_USE_NODE_MAP = {
  0:'<span class="status-grey">未上架</span>',
  1: '<span class="status-green">已上架</span>',
  2: '<span class="status-yellow">已下架</span>',
}
export const IS_LEGAL_NODE_MAP = {
  0: '<span class="status-yellow">待审核</span>',
  1: '<span class="status-green">审核通过</span>',
  2: '<span class="status-red">审核失败</span>',
}
export const LIVE_STATUS_NODE_MAP = {
  0: '<span class="status-grey">已结束</span>',
  1: '<span class="status-green">进行中</span>',
  2: '<span class="status-yellow">待开始</span>',
}

export const RELEASE_STATE = {
  '0': '未发布',
  '1': '发布成功',
  '2': '待同意',
}
export const REASON = {
  '0': '待审核',
  '1': '成功',
  '2': '失败',
}

export const pullingStateList = mapValue(PULLING_STATE);
export const releaseStateList = mapValue(RELEASE_STATE);
export const reasonList = mapValue(REASON);


